<template>
  <div>
    <ul class="wrapper" v-for="(item,index) of categoryList" :key="index">
        <li class="border-bottom">
          <span class="iconfont">&#xe63a;</span>
          {{item.title}}
        </li>
        <li v-if="item.children">
          <detail-list :categoryList="item.children"></detail-list>
        </li>
    </ul>
  </div>
</template>

<script>
export default{
  name: 'DetailList',
  props: {
    categoryList: Array
  }
}

</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .wrapper
    padding-left .24rem
    line .64rem
    line-height .64rem
</style>
